<html>
<head>
<title>Maven integration</title>
<link href="book.css" rel="stylesheet" type="text/css"/>
<meta content="DocBook XSL Stylesheets V1.75.1" name="generator"/>
<link rel="home" href="index.html" title="RSM/RSA Adapter for Eclipse Modeling / oAW"/>
<link rel="up" href="index.html" title="RSM/RSA Adapter for Eclipse Modeling / oAW"/>
<link rel="prev" href="adapter_rsdp_setup_rsa.html" title="Setting up IBM Rational Software Architect / Modeller"/>
<link rel="next" href="adapter_rsdp_future_enhancements.html" title="Future enhancements"/>
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<h1 xmlns:l="http://docbook.sourceforge.net/xmlns/l10n/1.0">Maven integration</h1>
<div class="section" title="Maven integration">
<div class="titlepage">
<div>
<div>
<h2 class="title" style="clear: both">
<a name="adapter_rsdp_maven_integration"/>Maven integration</h2>
</div>
</div>
</div>
<p>The sample below show the usage of the RSA/RSM adapter in a maven
    build. Using the Fornax maven plugin to invoke the Eclipse Modeling
    workflow (MWE).</p>
<pre class="programlisting">&lt;?xml version="1.0" encoding="UTF-8"?&gt;
&lt;project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
   xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"&gt;
   &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
   &lt;parent&gt;
      &lt;groupId&gt;org.openarchitectureware&lt;/groupId&gt;
      &lt;artifactId&gt;releng&lt;/artifactId&gt;
      &lt;version&gt;4.3.1&lt;/version&gt;
   &lt;/parent&gt;

   &lt;groupId&gt;org.openarchitectureware&lt;/groupId&gt;
   &lt;artifactId&gt;oaw-rsdp-adapter-example&lt;/artifactId&gt;
   &lt;version&gt;5.0.0-SNAPSHOT&lt;/version&gt;
   &lt;name&gt;oAW adapter sample for IBM Software Modeler/Architect (RSM/RSA)&lt;/name&gt;
   &lt;packaging&gt;jar&lt;/packaging&gt;

   &lt;properties&gt;
      &lt;m2t.xpand.version&gt;0.7.2&lt;/m2t.xpand.version&gt;
      &lt;oaw.version&gt;5.0.0&lt;/oaw.version&gt;
   &lt;/properties&gt;

   &lt;dependencies&gt;
      &lt;!-- oAW --&gt;
      &lt;dependency&gt;
         &lt;groupId&gt;org.openarchitectureware&lt;/groupId&gt;
         &lt;artifactId&gt;oaw-rsdp-adapter&lt;/artifactId&gt;
         &lt;version&gt;${oaw.version}&lt;/version&gt;
         &lt;scope&gt;runtime&lt;/scope&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
      	 &lt;groupId&gt;org.eclipse.m2t.xpand&lt;/groupId&gt;
         &lt;artifactId&gt;m2t-xpand-xpand&lt;/artifactId&gt;
         &lt;version&gt;${m2t.xpand.version}&lt;/version&gt;
         &lt;scope&gt;runtime&lt;/scope&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
         &lt;groupId&gt;log4j&lt;/groupId&gt;
         &lt;artifactId&gt;log4j&lt;/artifactId&gt;
         &lt;scope&gt;runtime&lt;/scope&gt;
      &lt;/dependency&gt;
   &lt;/dependencies&gt;

   &lt;build&gt;
      &lt;resources&gt;
         &lt;resource&gt;
            &lt;directory&gt;${basedir}/src/main/resources&lt;/directory&gt;
         &lt;/resource&gt;
      &lt;/resources&gt;

      &lt;plugins&gt;
         &lt;!-- Start oAW Workflow --&gt;
         &lt;plugin&gt;
            &lt;groupId&gt;org.fornax.toolsupport&lt;/groupId&gt;
            &lt;artifactId&gt;fornax-oaw-m2-plugin&lt;/artifactId&gt;
            &lt;version&gt;3.0.1&lt;/version&gt;
            &lt;configuration&gt;
               &lt;outletSrcDir&gt;generated/main/java&lt;/outletSrcDir&gt;
               &lt;outletSrcOnceDir&gt;src/main/java&lt;/outletSrcOnceDir&gt;
               &lt;workflowEngine&gt;mwe&lt;/workflowEngine&gt;
               &lt;workflowDescriptor&gt;workflow/testUsingPathmap.mwe&lt;/workflowDescriptor&gt;
            &lt;/configuration&gt;
            &lt;executions&gt;
               &lt;execution&gt;
                  &lt;id&gt;run-oaw-workflow-base&lt;/id&gt;
                  &lt;phase&gt;generate-sources&lt;/phase&gt;
                  &lt;goals&gt;
                     &lt;goal&gt;run-workflow&lt;/goal&gt;
                  &lt;/goals&gt;
               &lt;/execution&gt;
            &lt;/executions&gt;
         &lt;/plugin&gt;
      &lt;/plugins&gt;
   &lt;/build&gt;
&lt;/project&gt;</pre>
</div>
</body>
</html>
